package com.yykj.user.center.server.form;

import com.yykj.prescription.client.dto.PrescriptionCreateDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PrescriptionBindingForm extends PrescriptionCreateDTO {

    @NotEmpty(message = "会诊ID不能为空")
    @ApiModelProperty(value = "会诊ID", required = true)
    private String consultationId;

    @NotNull(message = "电子病历信息不能为空")
    @ApiModelProperty(value = "电子病历信息", required = true)
    private AddMedicalRecordForm medicalRecord;
}
